﻿@model YCMS.Domain.Entities.Dock

@{
    ViewBag.Title = "Create";
    
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Dock</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.DockName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DockName)
            @Html.ValidationMessageFor(model => model.DockName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DockArea)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DockArea)
            @Html.ValidationMessageFor(model => model.DockArea)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MaxLength)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MaxLength)
            @Html.ValidationMessageFor(model => model.MaxLength)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MaxBeam)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MaxBeam)
            @Html.ValidationMessageFor(model => model.MaxBeam)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Vacant)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Vacant)
            @Html.ValidationMessageFor(model => model.Vacant)
        </div>


        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back", "List")

</div>
